

package com.hexinfo.dmpro.dev.data.transfer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hexinfo.dmpro.common.base.PageResult;
import com.hexinfo.dmpro.dev.data.transfer.model.DevDataExportList;
import com.hexinfo.dmpro.dev.data.transfer.model.DevDataImportList;
import com.hexinfo.dmpro.dev.data.transfer.model.DevDataImportTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 表导入任务表
 *
 * @author yyh.huang
 * @date 2023-10-25 19:15:04
 */
public interface IDevDataImportListService extends IService<DevDataImportList> {

    PageResult queryList(Page page, DevDataImportList devDataImportList);

    List<DevDataImportList> queryListByTaskCode(String taskCode);

    void updateStatus(DevDataImportList devDataImportList);

    void restart(List<String> ids);

    void restart(String id);

    int updateByRestart(String id);

    void buildImportTaskList(DevDataImportTask devDataImportTask, List<String> filePathList);

    /**
     * @Method download
     * @Description 开发数据导入表清单下载
     * @Author gxd
     * @return String
     * @Date 2024/1/4 11:57
     **/
    String download(DevDataImportList devDataImportList);

    /**
     * @Method abolishByTaskCode
     * @Param
     * @param taskCode
     * @Return void
     * @Description 根据TaskCode批量修改状态为中止
     * @Author Wang zhihao
     * @Date 2024/1/19 11:31
     * @Version V1.0
     */
    void abolishByTaskCode(String taskCode);
}
